package com.zjy.service;

import com.zjy.bean.Goods;
import com.zjy.bean.UserCollection;
import com.zjy.dto.GoodsDTO;
import com.zjy.dto.GoodsParam;
import com.zjy.dto.ListResponse;

import java.util.HashMap;

/**
 * Created by Administrator on 2019/4/11.
 */
public interface GoodsService {
    String addGoods(GoodsDTO goods);

    int deleteGoodsById(String goodsId);

    int updateGoodsById(GoodsDTO goods);

    Goods selectGoodsById(String userId,String goodsId);

    ListResponse selectGoodsList(GoodsParam param);

    /**
     * 获取已上架商品总条数
     * @return
     */
    int getGoodsCount(GoodsParam param);

    HashMap<String,Object> getGoodsData();

    int addGoodsCollection(UserCollection userCollection);

    int cancelGoodsCollection(UserCollection userCollection);

    ListResponse getGoodsCollection(GoodsParam param);

    int deleteGoodsCollection(HashMap<String,Object> param);

    HashMap<String,Object> getNineGoods();
}
